package com.yadong.numberguess;

import android.app.Activity;
import android.os.Bundle;
import android.view.Gravity;
import android.widget.TextView;

public class TextActivity extends Activity {
    public static final String EXTRA_CONTENT = "content";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String message = getIntent().getStringExtra(EXTRA_CONTENT);
        TextView textView = new TextView(this);
        textView.setGravity(Gravity.CENTER_VERTICAL);
        textView.setText(message);
        textView.setTextSize(24);
        textView.setPadding(20, 20, 20, 20);
        setContentView(textView);
    }

}
